package com.example.oop.tutor;

import com.example.oop.person.Student;
import com.example.oop.skill.Skill;
import com.example.oop.timeslot.FixedDateTimeSlot;

import java.util.Set;

public class VirtualTutorGroupMeeting extends TutorGroupMeeting{
    private String url;
    public String getUrl(){
        return url;
    }

    public VirtualTutorGroupMeeting(FixedDateTimeSlot timeSlot, TutorGroup tutorGroup, Skill skillToPractise, String url){

        super(timeSlot,tutorGroup,skillToPractise);
        this.url = url;
    }

    @Override
    public void practise(){


        getTutorGroup().getTutor().say("Thank you for joining using "+url+" today.");
        Set<Student> students =
                getTutorGroup().getStudents();
        students.forEach(e->{
            e.learnSkill(getSkillToPractise());
        });
        getTutorGroup().getTutor().say("See you next time!");
    }
}
